package com.mccrea.pattern.decorator;

import java.math.BigDecimal;

/**
 * @author mccrea
 * @version 1.0
 * @description: 饮料抽象类
 * @date 2021/5/9 11:39
 */
public abstract class Drink {

    private String des;
    private BigDecimal price;

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 计算价格
     * @author mccrea
     * @date 2021/5/9 11:41
     * @version 1.0
     * @return 计算得到的价格
     */
    abstract BigDecimal cost();
}
